import request from '@/utils/request'

export function loginByUsername(usrLogin, usrPwd) {
  const data = {
    usrLogin,
    usrPwd
  }
  return request({
    // url: '/login/login',
    url: '/analysis/v1.0/login',
    method: 'post',
    data
  })
}

export function logout(data) {
  return request({
    url: '/analysis/v1.0/logout',
    method: 'post',
    data
  })
}

export function getUserInfo(token) {
  return request({
    url: '/user/info',
    method: 'get',
    params: { token }
  })
}

